package com.qidian.buy.cms.service;

import com.qidian.buy.cms.mapper.ContentCategoryMapper;
import com.qidian.buy.common.pojo.BuyResult;
import com.qidian.buy.pojo.ContentCategory;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 戴着假发的程序员
 * @since 2024-07-12 10:23:41
 */
public interface IContentCategoryService  {

    BuyResult saveCat(ContentCategory category);

    /**
     *
     * @param parentId
     * @param pageNum
     * @param limit
     * @return
     */
    BuyResult queryByParentId(Long parentId,int pageNum,int limit);

    /**
     *
     * @param catId
     * @return
     */
    BuyResult get(Long catId);

    /**
     * 查询所有内容类型，返回的是树结构
     * @return
     */
    BuyResult queryAll();
}
